e5c080
@@ -150,6 +150,13 @@
public abstract class FilterBase extends Filter {
     return this.getClass().getSimpleName();
   }
 
+  /**
+   * Return length 0 byte array for Filters that don't require special serialization
+   */
+  public byte [] toByteArray() {
+    return new byte[0];
+  }
+
   /**
    * Default implementation so that writers of custom filters aren't forced to implement.
    *
